

package cn.shengchao.examstar.product.domain.entity;

import cn.shengchao.base.enums.DisEnableStatusEnum;
import cn.shengchao.examstar.product.domain.valobj.Price;
import cn.shengchao.examstar.product.domain.valobj.ProductName;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 产品
 */
@Data
public abstract class Product {
    protected Long id;
    //产品
    protected ProductName name;
    //价格
    protected Price price;
    //价格
    protected Price discountPrice;
    protected List<String> specificationType;
    // 概述
    protected String description;
    // 详情
    protected String details;
    //封面
    protected String imageUrl;
    //评分
    protected Double score;
    //排序
    protected Integer sort;
    //状态
    protected DisEnableStatusEnum status;
    //虚拟购买人数
    protected Integer virtualPurchaseNum;
    //实际购买人数
    protected Integer actualPurchaseNum;
    //是否虚拟产品
    protected Boolean isVirtual;
    //是否发送物流
    protected Boolean isLogistics;
    //规格属性
    protected Date createTime;
}
